home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / powerb5.zip / P5SPR000.TIP < prev    next >
Text File  |  1993-06-01  |  2KB  |  45 lines

  1. I'm a college teacher, and use Quattro Pro to do my record
  2. keeping. Because I prefer to enter and read grades as
  3. letters (for example, B+) but need a numerical equivalent to
  4. compute averages, I wanted a formula to convert a letter
  5. grade to its corresponding number. The task was complicated
  6. by the fact that D and F are consecutive grades but are
  7. separated by a letter alphabetically.
  8.  
  9. When I build a spreadsheet to hold class records, I put the
  10. alphabetic grades from each assignment or exam in one
  11. column. In another column, I type the formula
  12.  
  13. (69 - @CODE(address)+@ABS(69-@CODE(address)))/2+
  14.  @IF(@MID(address,1,1) = "+",.3,(@IF(@MID(address,1,1)="-",-.3, 0)))
  15.  
  16. where "address" is the cell address containing the letter
  17. grade. The result of this formula is the grade converted to
  18. a number. I then average the converted grades and show grade
  19. point averages next to the block of letter grades.
  20.  
  21. Lewis D. Blake III
  22. Durham, North Carolina
  23.  
  24. Editor's Note: The formula is broken into two lines here for
  25. readability, but you should type all of it into a single
  26. cell in your spreadsheet. Mr. Blake happens to be a Quattro
  27. user, but you don't need Quattro to use this technique.
  28. Reflex, 1-2-3, and many other programs have identical @ABS,
  29. @CODE, and @MID functions and can use this formula with few
  30. or no changes.
  31.  
  32. But be warned: The macro is case sensitive. The letter
  33. grades must be entered as capital letters. Also, this
  34. formula will give you an absurd result for characters
  35. outside the A-to-F range and will return an error if the
  36. cell to be converted is empty.
  37.  
  38.  
  39. Title: Making the Grade
  40. Category: SPR
  41. Issue Date: January, 1992
  42. Editor: Brett Glass
  43. Supplementary Files: None
  44. Filename: P5SPR000.TIP
  45.